import mitt from 'mitt'

type Events = {
    sendMsg: string
    sendNum: number,
    sendObj:Object,
    sendArr:Array<string>,
    sendBool:boolean,
}

const bus = mitt<Events>()
export default bus